package com.ceba.test.base.enums;

public enum FeeTypeEnum {

	NUMS(1,"签名份数"),
	BUYOFF(2,"维护成本"),
	OTHER(3,"其他");
	private int type;
	
	private String name;

	private FeeTypeEnum(int type, String name) {
		this.type = type;
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public static String getNameByType(String type){
		FeeTypeEnum[] types = FeeTypeEnum.values();
		for(FeeTypeEnum f:types){
			if(f.type == Integer.valueOf(type)){
				return f.name;
			}
		}
		return "";
	}
	
}
